package cn.tedu.task;

import javax.swing.*;

/**
 * 设计侦察潜艇类
 */
public class ObserveSubmarine extends SeaObject implements EnemyScore{

    /**
     * Instantiates a new Observe submarine.
     */
    public ObserveSubmarine(){
        super(63,19);
    }

    @Override
    public void move(){
        x+=speed;
    }

    @Override
    public ImageIcon getImage(){
        return Images.obsersubm; //返回侦察潜艇图片
    }

    @Override
    public int getScore() {
        return 10;//打掉侦察潜艇，得10分
    }
}



























